package com.bm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ejyy_complain
 */
@TableName(value ="ejyy_complain")
@Data
public class EjyyComplain implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long communityId;

    /**
     * 1 投诉 2建议
     */
    private Boolean type;

    /**
     * 
     */
    private Long wechatMpUserId;

    /**
     * 
     */
    private Long propertyCompanyUserId;

    /**
     * 1 卫生问题；2 噪音问题；3 服务态度；4 违建； 5 占用消防通道； 6 社区设施； 7 其他
     */
    private Integer category;

    /**
     * 
     */
    private String description;

    /**
     * 
     */
    private String complainImgs;

    /**
     * 
     */
    private Boolean disposeSubscribed;

    /**
     * 
     */
    private Boolean confrimSubscribed;

    /**
     * 
     */
    private Boolean finishSubscribed;

    /**
     * 
     */
    private Long allotUserId;

    /**
     * 
     */
    private Long allotedAt;

    /**
     * 
     */
    private Long disposeUserId;

    /**
     * 
     */
    private String disposeReply;

    /**
     * 
     */
    private String disposeContent;

    /**
     * 
     */
    private String disposeImgs;

    /**
     * 
     */
    private Long disposedAt;

    /**
     * 
     */
    private Long finishedAt;

    /**
     * 
     */
    private Long mergeId;

    /**
     * 
     */
    private Integer step;

    /**
     * 
     */
    private Boolean rate;

    /**
     * 
     */
    private String rateContent;

    /**
     * 
     */
    private Long ratedAt;

    /**
     * 
     */
    private Long createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EjyyComplain other = (EjyyComplain) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getWechatMpUserId() == null ? other.getWechatMpUserId() == null : this.getWechatMpUserId().equals(other.getWechatMpUserId()))
            && (this.getPropertyCompanyUserId() == null ? other.getPropertyCompanyUserId() == null : this.getPropertyCompanyUserId().equals(other.getPropertyCompanyUserId()))
            && (this.getCategory() == null ? other.getCategory() == null : this.getCategory().equals(other.getCategory()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getComplainImgs() == null ? other.getComplainImgs() == null : this.getComplainImgs().equals(other.getComplainImgs()))
            && (this.getDisposeSubscribed() == null ? other.getDisposeSubscribed() == null : this.getDisposeSubscribed().equals(other.getDisposeSubscribed()))
            && (this.getConfrimSubscribed() == null ? other.getConfrimSubscribed() == null : this.getConfrimSubscribed().equals(other.getConfrimSubscribed()))
            && (this.getFinishSubscribed() == null ? other.getFinishSubscribed() == null : this.getFinishSubscribed().equals(other.getFinishSubscribed()))
            && (this.getAllotUserId() == null ? other.getAllotUserId() == null : this.getAllotUserId().equals(other.getAllotUserId()))
            && (this.getAllotedAt() == null ? other.getAllotedAt() == null : this.getAllotedAt().equals(other.getAllotedAt()))
            && (this.getDisposeUserId() == null ? other.getDisposeUserId() == null : this.getDisposeUserId().equals(other.getDisposeUserId()))
            && (this.getDisposeReply() == null ? other.getDisposeReply() == null : this.getDisposeReply().equals(other.getDisposeReply()))
            && (this.getDisposeContent() == null ? other.getDisposeContent() == null : this.getDisposeContent().equals(other.getDisposeContent()))
            && (this.getDisposeImgs() == null ? other.getDisposeImgs() == null : this.getDisposeImgs().equals(other.getDisposeImgs()))
            && (this.getDisposedAt() == null ? other.getDisposedAt() == null : this.getDisposedAt().equals(other.getDisposedAt()))
            && (this.getFinishedAt() == null ? other.getFinishedAt() == null : this.getFinishedAt().equals(other.getFinishedAt()))
            && (this.getMergeId() == null ? other.getMergeId() == null : this.getMergeId().equals(other.getMergeId()))
            && (this.getStep() == null ? other.getStep() == null : this.getStep().equals(other.getStep()))
            && (this.getRate() == null ? other.getRate() == null : this.getRate().equals(other.getRate()))
            && (this.getRateContent() == null ? other.getRateContent() == null : this.getRateContent().equals(other.getRateContent()))
            && (this.getRatedAt() == null ? other.getRatedAt() == null : this.getRatedAt().equals(other.getRatedAt()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getWechatMpUserId() == null) ? 0 : getWechatMpUserId().hashCode());
        result = prime * result + ((getPropertyCompanyUserId() == null) ? 0 : getPropertyCompanyUserId().hashCode());
        result = prime * result + ((getCategory() == null) ? 0 : getCategory().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getComplainImgs() == null) ? 0 : getComplainImgs().hashCode());
        result = prime * result + ((getDisposeSubscribed() == null) ? 0 : getDisposeSubscribed().hashCode());
        result = prime * result + ((getConfrimSubscribed() == null) ? 0 : getConfrimSubscribed().hashCode());
        result = prime * result + ((getFinishSubscribed() == null) ? 0 : getFinishSubscribed().hashCode());
        result = prime * result + ((getAllotUserId() == null) ? 0 : getAllotUserId().hashCode());
        result = prime * result + ((getAllotedAt() == null) ? 0 : getAllotedAt().hashCode());
        result = prime * result + ((getDisposeUserId() == null) ? 0 : getDisposeUserId().hashCode());
        result = prime * result + ((getDisposeReply() == null) ? 0 : getDisposeReply().hashCode());
        result = prime * result + ((getDisposeContent() == null) ? 0 : getDisposeContent().hashCode());
        result = prime * result + ((getDisposeImgs() == null) ? 0 : getDisposeImgs().hashCode());
        result = prime * result + ((getDisposedAt() == null) ? 0 : getDisposedAt().hashCode());
        result = prime * result + ((getFinishedAt() == null) ? 0 : getFinishedAt().hashCode());
        result = prime * result + ((getMergeId() == null) ? 0 : getMergeId().hashCode());
        result = prime * result + ((getStep() == null) ? 0 : getStep().hashCode());
        result = prime * result + ((getRate() == null) ? 0 : getRate().hashCode());
        result = prime * result + ((getRateContent() == null) ? 0 : getRateContent().hashCode());
        result = prime * result + ((getRatedAt() == null) ? 0 : getRatedAt().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", communityId=").append(communityId);
        sb.append(", type=").append(type);
        sb.append(", wechatMpUserId=").append(wechatMpUserId);
        sb.append(", propertyCompanyUserId=").append(propertyCompanyUserId);
        sb.append(", category=").append(category);
        sb.append(", description=").append(description);
        sb.append(", complainImgs=").append(complainImgs);
        sb.append(", disposeSubscribed=").append(disposeSubscribed);
        sb.append(", confrimSubscribed=").append(confrimSubscribed);
        sb.append(", finishSubscribed=").append(finishSubscribed);
        sb.append(", allotUserId=").append(allotUserId);
        sb.append(", allotedAt=").append(allotedAt);
        sb.append(", disposeUserId=").append(disposeUserId);
        sb.append(", disposeReply=").append(disposeReply);
        sb.append(", disposeContent=").append(disposeContent);
        sb.append(", disposeImgs=").append(disposeImgs);
        sb.append(", disposedAt=").append(disposedAt);
        sb.append(", finishedAt=").append(finishedAt);
        sb.append(", mergeId=").append(mergeId);
        sb.append(", step=").append(step);
        sb.append(", rate=").append(rate);
        sb.append(", rateContent=").append(rateContent);
        sb.append(", ratedAt=").append(ratedAt);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}